package com.credithc.customers.base.ro;

import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

@Data
public class CustomerUnifySubRegisterRo extends CustomerBaseRo {

    String preCustomerNo;

    String phone;

    String customerNo;


    public static void checkBaseParam(CustomerUnifySubRegisterRo ro) {
        CustomerUtils.checkRequestNo(ro.getRequestNo());
        CustomerUtils.checkCustomerNo(ro.getCustomerNo());
        if (StringUtils.isNotBlank(ro.getPhone())) {
            CustomerUtils.checkPhone(ro.getPhone());
        }
    }

}
